package controller;

import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import model.Kunde;

import view.ModifyUserInDetail;

public class GUIModifyUserInDetailContoller implements ActionListener
{
	private ModifyUserInDetail mud;
	private Kunde customer;
	
	
	

	public GUIModifyUserInDetailContoller(Container cont, Kunde customer)
	{
		super();
		this.mud = new ModifyUserInDetail(cont, customer);
		this.mud.addActionsListeners(this);
	}




	@Override
	public void actionPerformed(ActionEvent e)
	{
		{
			if(e.getSource() == this.mud.getCancelButton()){
				System.out.println("Cancel Button");
			this.mud.setVisible(false);
				
			}else if(e.getSource()==this.mud.getSaveCustomerButton()){
				System.out.println("Save Button");
			}
			
		}
	}




	public ModifyUserInDetail getMud()
	{
		return mud;
	}




	public void setMud(ModifyUserInDetail mud)
	{
		this.mud = mud;
	}

}
